package com.xnf.ssmweb.service.impl;

import com.xnf.ssmweb.dao.OrdersMapper;
import com.xnf.ssmweb.domain.Orders;
import com.xnf.ssmweb.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chendx on 2021/3/29.
 */
@Service
public class OrdersServiceImpl implements OrdersService{

    @Autowired
    private OrdersMapper ordersMapper;

    public List<Orders> queryOrders() {
        return ordersMapper.findAll();
    }

    public Orders findOrderById(Long id) {
        return ordersMapper.findById(id);
    }
}
